﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace He.BLL
{
    public partial class wx_menu
    { 
        /// <summary>
        /// 修改一列数据
        /// </summary>
        public void UpdateField(int Id, string strValue)
        {
            dal.UpdateField(Id, strValue);
        }

        /// <summary>
        /// 删除多条数据
        /// </summary>
        public bool DeleteAll(int id)
        {

            return dal.DeleteAll(id);
        }

        /// <summary>
        /// 取得所有栏目列表
        /// </summary>
        public DataTable GetList(int pid)
        {
            return dal.GetList(pid);
        }

        /// <summary>
        /// 是否存在显示的子菜单
        /// </summary>
        public bool ExistsChild(int pid)
        {
            return dal.ExistsChild(pid);
        }

        /// <summary>
        /// 获得前几行数据
        /// </summary>
        public DataSet GetList(int top, string strWhere)
        {
            return dal.GetList(top, strWhere);
        }
    }
}
